package org.jsola.hr.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.validator.constraints.Length;
import org.jsola.core.dto.BaseDTO;

import javax.validation.constraints.NotNull;

import static org.jsola.core.example.BaseExample.E_ID;
import static org.jsola.core.example.BaseExample.M_ID_NOT_NULL;
import static org.jsola.core.example.BaseExample.N_ID;
import static org.jsola.hr.example.EmployOrganizationExample.E_ADMIN_NAME;
import static org.jsola.hr.example.EmployOrganizationExample.E_ADMIN_USER_ID;
import static org.jsola.hr.example.EmployOrganizationExample.E_AUDIT_STATE;
import static org.jsola.hr.example.EmployOrganizationExample.E_BUSINESS_LICENSE;
import static org.jsola.hr.example.EmployOrganizationExample.E_CITY;
import static org.jsola.hr.example.EmployOrganizationExample.E_CONTACT_NUMBER;
import static org.jsola.hr.example.EmployOrganizationExample.E_NAME;
import static org.jsola.hr.example.EmployOrganizationExample.E_OFFICE_ENVIRONMENT;
import static org.jsola.hr.example.EmployOrganizationExample.E_ORGANIZATION_CODE;
import static org.jsola.hr.example.EmployOrganizationExample.M_ADMIN_NAME_MAX;
import static org.jsola.hr.example.EmployOrganizationExample.M_ADMIN_NAME_NOT_NULL;
import static org.jsola.hr.example.EmployOrganizationExample.M_ADMIN_USER_ID_MAX;
import static org.jsola.hr.example.EmployOrganizationExample.M_ADMIN_USER_ID_NOT_NULL;
import static org.jsola.hr.example.EmployOrganizationExample.M_BUSINESS_LICENSE_MAX;
import static org.jsola.hr.example.EmployOrganizationExample.M_BUSINESS_LICENSE_NOT_NULL;
import static org.jsola.hr.example.EmployOrganizationExample.M_CITY_MAX;
import static org.jsola.hr.example.EmployOrganizationExample.M_CITY_NOT_NULL;
import static org.jsola.hr.example.EmployOrganizationExample.M_CONTACT_NUMBER_MAX;
import static org.jsola.hr.example.EmployOrganizationExample.M_CONTACT_NUMBER_NOT_NULL;
import static org.jsola.hr.example.EmployOrganizationExample.M_NAME_MAX;
import static org.jsola.hr.example.EmployOrganizationExample.M_NAME_NOT_NULL;
import static org.jsola.hr.example.EmployOrganizationExample.M_OFFICE_ENVIRONMENT_MAX;
import static org.jsola.hr.example.EmployOrganizationExample.M_OFFICE_ENVIRONMENT_NOT_NULL;
import static org.jsola.hr.example.EmployOrganizationExample.M_ORGANIZATION_CODE_MAX;
import static org.jsola.hr.example.EmployOrganizationExample.M_ORGANIZATION_CODE_NOT_NULL;
import static org.jsola.hr.example.EmployOrganizationExample.N_ADMIN_NAME;
import static org.jsola.hr.example.EmployOrganizationExample.N_ADMIN_USER_ID;
import static org.jsola.hr.example.EmployOrganizationExample.N_AUDIT_STATE;
import static org.jsola.hr.example.EmployOrganizationExample.N_BUSINESS_LICENSE;
import static org.jsola.hr.example.EmployOrganizationExample.N_CITY;
import static org.jsola.hr.example.EmployOrganizationExample.N_CONTACT_NUMBER;
import static org.jsola.hr.example.EmployOrganizationExample.N_NAME;
import static org.jsola.hr.example.EmployOrganizationExample.N_OFFICE_ENVIRONMENT;
import static org.jsola.hr.example.EmployOrganizationExample.N_ORGANIZATION_CODE;

/**
 * 卫人云-用人机构
 *
 * @author zhr
 */
@EqualsAndHashCode(callSuper = true)
@ApiModel(description = "修改【卫人云-用人机构】的参数")
@Data
public class EmployOrganizationUpdateDTO extends BaseDTO {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(notes = N_ID, example = E_ID, required = true)
    @NotNull(message = M_ID_NOT_NULL)
    private String id;

    @ApiModelProperty(notes = N_NAME, example = E_NAME, required = true)
    @NotNull(message = M_NAME_NOT_NULL)
    @Length(max = 50, message = M_NAME_MAX)
    private String name;

    @ApiModelProperty(notes = N_CITY, example = E_CITY, required = true)
    @NotNull(message = M_CITY_NOT_NULL)
    @Length(max = 50, message = M_CITY_MAX)
    private String city;

    @ApiModelProperty(notes = N_ADMIN_NAME, example = E_ADMIN_NAME, required = true)
    @NotNull(message = M_ADMIN_NAME_NOT_NULL)
    @Length(max = 50, message = M_ADMIN_NAME_MAX)
    private String adminName;

    @ApiModelProperty(notes = N_ADMIN_USER_ID, example = E_ADMIN_USER_ID, required = true)
    @NotNull(message = M_ADMIN_USER_ID_NOT_NULL)
    @Length(max = 32, message = M_ADMIN_USER_ID_MAX)
    private String adminUserId;

    @ApiModelProperty(notes = N_CONTACT_NUMBER, example = E_CONTACT_NUMBER, required = true)
    @NotNull(message = M_CONTACT_NUMBER_NOT_NULL)
    @Length(max = 11, message = M_CONTACT_NUMBER_MAX)
    private String contactNumber;

    @ApiModelProperty(notes = N_ORGANIZATION_CODE, example = E_ORGANIZATION_CODE, required = true)
    @NotNull(message = M_ORGANIZATION_CODE_NOT_NULL)
    @Length(max = 50, message = M_ORGANIZATION_CODE_MAX)
    private String organizationCode;

    @ApiModelProperty(notes = N_BUSINESS_LICENSE, example = E_BUSINESS_LICENSE, required = true)
    @NotNull(message = M_BUSINESS_LICENSE_NOT_NULL)
    @Length(max = 500, message = M_BUSINESS_LICENSE_MAX)
    private String businessLicense;

    @ApiModelProperty(notes = N_OFFICE_ENVIRONMENT, example = E_OFFICE_ENVIRONMENT, required = true)
    @NotNull(message = M_OFFICE_ENVIRONMENT_NOT_NULL)
    @Length(max = 1000, message = M_OFFICE_ENVIRONMENT_MAX)
    private String officeEnvironment;

    @ApiModelProperty(notes = N_AUDIT_STATE, example = E_AUDIT_STATE)
    private Integer auditState;


}

